spi-bcm2835: Support pin groups other than 7-11
authorPhil Elwell <phil@raspberrypi.org>
Wed, 24 Jun 2015 13:10:44 +0000 (14:10 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 9 Mar 2017 17:50:45 +0000 (17:50 +0000)
commite29744943accac6a4ba9628416ccdaf8290e56a9
treea62b84cc6a8145b91311b25ffc0fe1d4c6cc008b
parent517968a97c7fc43833d9305df92c22050f33acd6
spi-bcm2835: Support pin groups other than 7-11

The spi-bcm2835 driver automatically uses GPIO chip-selects due to
some unreliability of the native ones. In doing so it chooses the
same pins as the native chip-selects would use, but the existing
code always uses pins 7 and 8, wherever the SPI function is mapped.

Search the pinctrl group assigned to the driver for pins that
correspond to native chip-selects, and use those for GPIO chip-
selects.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/spi/spi-bcm2835.c